// 详情用法请参考：https://www.uviewui.com/js/http.html
const http = uni.$u.http

// post请求，获取菜单
export const postShopInfo = (params, config = {}) => http.post('/edcapi/Shop_shopDeatil', params, config)
// get请求，获取菜单，注意：get请求的配置等，都在第二个参数中，详见前面解释
export const getShopInfo = (data) => http.get('/edcapi/Shop_shopDeatil', data)

export const login = (params) => http.post('/login', params)

//banner
export const storeBanner = (data) => http.get('/banner', data)
//助力
export const getAssistance = (data) => http.get('/assistance/show', data)
//助力进度
export const getAssistanceRate = (data) => http.get('/assistance/rate', data)
//助力好友列表
export const getAssistanceList = (data) => http.get('/assistance/list', data)
//所有助力好友
export const getAssistanceAll = (data) => http.post('/staff/assist_all', data)
//商品
export const getGoodList = (data) => http.get('/goods', data)
//助力好友
export const addAssistance = (params) => http.post('/assistance/create', params)
//卡券
export const getOrderList = (data) => http.get('/orders', data)
//门店
export const getStore = (data) => http.get('/store', data)
//门店列表
export const getStoreList = (data) => http.get('/store_list', data)

export const myFromList = (params) => http.post('/my/from_list', params)

export const myFromInfo = (params) => http.post('/my/from_info', params)

export const myIsStaff = (params) => http.post('/my/is_staff', params)
//个人报告
export const myReport = (params) => http.post('/my/report', params)
//领取奖励
export const myReceive = (params) => http.post('/my/receive', params)

//服务项目(列表)
export const itemList = (params) => http.get('/articles', params)
//服务项目详情
export const itemdetails = (params) => http.get('/article', params)


//我的积分
export const integral = (params) => http.post('/my/integral', params)
//我的积分明细
export const integralList = (params) => http.post('/my/integral_list', params)
//门店介绍
export const storeInfo = (params) => http.post('/my/store_info', params)


//员工端
//用户列表
export const memberList = (params) => http.post('/staff/member_list', params)
//用户详情
export const memberInfo = (params) => http.post('/staff/member_info', params)
//用户表单列表
export const fromList = (params) => http.post('/staff/from_list', params)
//用户表单详情
export const fromInfo = (params) => http.post('/staff/from_info', params)
//用户表单提交
export const fromEdit = (params) => http.post('/staff/from_edit', params)
//员工详情
export const staffInfo = (params) => http.post('/staff/staff_info', params)
//核销
export const exchange = (params) => http.post('/staff/exchange', params)
